package ManageGameHServer.bean;

public class Header {
	private byte tag;//发送标志
	private int headFirst;//包头
	private short cammand;//命令编号
	private int messageUnid;//消息唯一编号
	private int containLength;//内容长度
	public Header() {
	}
	public Header(byte tag, int headFirst, short cammand, int messageUnid, int containLength) {
		this.tag = tag;
		this.headFirst = headFirst;
		this.cammand = cammand;
		this.messageUnid = messageUnid;
		this.containLength = containLength;
	}
	public byte getTag() {
		return tag;
	}
	public void setTag(byte tag) {
		this.tag = tag;
	}
	public int getHeadFirst() {
		return headFirst;
	}
	public void setHeadFirst(int headFirst) {
		this.headFirst = headFirst;
	}
	public short getCammand() {
		return cammand;
	}
	public void setCammand(short cammand) {
		this.cammand = cammand;
	}
	public int getMessageUnid() {
		return messageUnid;
	}
	public void setMessageUnid(int messageUnid) {
		this.messageUnid = messageUnid;
	}
	public int getContainLength() {
		return containLength;
	}
	public void setContainLength(int containLength) {
		this.containLength = containLength;
	}
	@Override
	public String toString() {
		return "Header [tag=" + tag + ", headFirst=" + headFirst + ", cammand=" + cammand + ", messageUnid="
				+ messageUnid + ", containLength=" + containLength + "]";
	}
}
